SampleController

Undocumented in source.
version(none)
nothrow @trusted @nogc
interface SampleController {}

Members

Functions

finished
bool finished()

If the sample has finished playing. Happens when it runs out or if it is stopped.

pause
void pause()

Pauses playback, keeping its position. Use resume to pick up where it left off.

paused
bool paused()

If the sample has been paused.

position
float position()

Reports the current stream position, in seconds, if available (NaN if not).

resume
void resume()

Resumes playback after a call to pause.

stop
void stop()

Stops playback. Once stopped, it cannot be restarted except by creating a new sample from the AudioOutputThread object.

Meta